package com.tanhua.api;

import com.tanhua.model.mongo.UserLike;

import java.util.List;
import java.util.Map;

public interface UserLikeApi {

    //保存喜欢/不喜欢数据
    boolean save(Long userId, Long likeUserId, boolean b);

    //统计
    Map<String, Integer> counts(Long userId);

    //判断
    Boolean exists(Long userId, Long likeUserId);

    //删除
    void deleteLove(Long userId, Long likeUserId);

    //分页查询
    List<UserLike> findByPage(Integer type, Integer page, Integer pagesize, Long userId);

    //粉丝 - 喜欢
    void saveLove(UserLike userLike);
}
